import request from '@/utils/request'

// 查询施工攻略详情列表
export function listDetail(query) {
  return request({
    url: '/construction/detail/list',
    method: 'get',
    params: query
  })
}

// 查询施工攻略详情详细
export function getDetail(strategyDetailId) {
  return request({
    url: '/construction/detail/' + strategyDetailId,
    method: 'get'
  })
}

// 新增施工攻略详情
export function addDetail(data) {
  return request({
    url: '/construction/detail',
    method: 'post',
    data: data
  })
}

// 修改施工攻略详情
export function updateDetail(data) {
  return request({
    url: '/construction/detail',
    method: 'put',
    data: data
  })
}

// 删除施工攻略详情
export function delDetail(strategyDetailId) {
  return request({
    url: '/construction/detail/' + strategyDetailId,
    method: 'delete'
  })
}

// 导出施工攻略详情
export function exportDetail(query) {
  return request({
    url: '/construction/detail/export',
    method: 'get',
    params: query
  })
}